<?php
require_once('../../prepend.php');
require_once('MPDOStorage.php');

$dsn = 'sqlite2:/var/www/moreia/core/sqlite/main.sl';

$sql = "INSERT INTO i18n_domain (id, domain_name) VALUES (:id, :value)";
$value = "moreia_form";
$id = NULL;




try{
	$dbh = MPDOStorage::instance();
	//$sql = "insert into i18n_domain (`domain_name`) values (`moreia_form`)";
	$stmt = $dbh->prepare($sql);
	$stmt->bindParam(':id', $id);
	$stmt->bindParam(':value', $value);
	$stmt->execute();
	
	//$res = $o->query($sql);
	//$res = new PDOStatement();
	$error = $stmt->errorInfo();
	
	var_dump($error);
	//var_dump($res);
} catch (PDOException $e){
	echo $e;
} catch (Exception $ne){
	echo $ne;
}
?>